/**
 * Created by admin on 2016/8/8.
 */
var express = require('express');

var Home = require('./home/index');
var Detail = require('./goodDetail/index');
var Cart  = require('./cartAndpay/index');
var Order = require('./orderManage/index');
var Refund = require('./refund/index');
var User = require('./userCenter/index');



module.exports =function (app) {

    /*首页*/
    app.get('/home',Home.home);
    /*搜索*/
    app.get('/search',Home.search);
    /*搜索结果*/
    app.get('/searchList',Home.searchList);
    /*商品详情*/
    app.get('/goodDetail',Detail.index);

    /*购物车*/
    app.get('/cart',Cart.cart);

    /*确认订单*/
    app.get('/confirm',Cart.confirm);

    /*支付*/
    app.get('/pay',Cart.pay);

    /*订单状态*/
    app.get('/order',Order.orderState);

    /*订单详情*/
    app.get('/orderContent',Order.orderContent);

    /*退款类型*/
    app.get('/refundType',Refund.refundType);
    /*仅退款*/
    app.get('/refundMoney',Refund.refundMoney);

    /*退款进度*/
    app.get('/refundMoneyProgress',Refund.refundMoneyProgress);

    /*退货并退款*/
    app.get('/refundGood',Refund.refundGood);

    /*退货进度*/
    app.get('/refundGoodProgress',Refund.refundGoodProgress);


    /*个人中心*/
    app.get('/userCenter',User.userCenter);
    app.get('/feedback',User.feedback);
    app.get('/more',User.more);
    app.get('/address',User.address);
    app.get('/newAddress',User.newAddress);

};
